package com.example.demo.mapper;

import com.example.demo.domain.Role;
import com.example.demo.domain.User;
import com.example.demo.query.RoleQuery;

import java.util.List;

//角色Mapper
public interface RoleMapper {

    List<Role> listRoleByUserId(Long userid);

    Long queryTotal(RoleQuery userQuery);

    List<User> queryData(RoleQuery userQuery);

    void saveRole(Role role);

    void editSaveRole(Role role);

    void deleteRole(Long id);
}
